<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title><s:text name="system.page.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/tree.js" charset="utf-8"></script>
<script type="text/javascript" src="js/base.js" charset="utf-8"></script>
<script type="text/javascript" src="js/ready.js" charset="utf-8"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(function() {
		$("#tree").tree({
			ajax:true,
			action:'jsonKpi.do',
			selected:false,
			checkbox:true,
			data:getData('<s:property value="data" escapeJavaScript="false" escapeHtml="false"/>')
		});
	});
	function editorKpi() {
		var o = $("input[name='_chbox'][sel='1']");
		var kpiId = "";
		$.each(o, function(i) {
			var x = $(this).data("data");
			if(i == 0) {
				kpiId = x.kpi_id;
			} else {
				kpiId += "," + x.kpi_id;
			}
		});
		window.parent.settingKpi(kpiId);
	}
</script>
</head>
<body>
<div class="tools">
	<div class="tool">
	<ul>
		<li>
			<div onclick="editorKpi()"><img src="image/button/filesave.png" width="20" height="20"/><span><s:text name='system.button.save'/></span></div>
		</li>
	</ul>
	</div>
</div>
<div id="tree" style="float:left;width: 100%;height: 416px;overflow-y: auto;">

</div>
</body>
</html>
